import api from '@/api/index.ts'

// 获取列表
export function GetData(params: any) {
  return api.get('/api/member/product/list', { params })
}
// 获取详情
export function GetDetailData(id: string) {
  return api.get(`/api/member/product/detail/${id}`)
}
// 根据商品ID获取详情
export function IdGetDataDetail(params: any) {
  return api.get(`/api/member/product/detail`, { params })
}
// 添加
export function PostCreateData(params: any) {
  return api.post('/api/member/product/create', params)
}
// 编辑
export function PutModifyData(params: any) {
  return api.put('/api/member/product/modify', params)
}
// 修改排序
export function patchListSort(params: any) {
  return api.patch('/api/member/product/modifysort', params)
}
